import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '学生姓名',
    dataIndex: 'studentName'
   },
   {
    title: '学校/名称',
    dataIndex: 'schoolName'
   },
   {
    title: '学院/名称',
    dataIndex: 'collegeName'
   },
   {
    title: '班级',
    dataIndex: 'className'
   },
   {
    title: '就业企业',
    dataIndex: 'workFirm'
   },
   {
    title: '岗位名称',
    dataIndex: 'gangweiName'
   },
   {
    title: '职业名称',
    dataIndex: 'jobName'
   },
   {
    title: '光荣事迹',
    dataIndex: 'perfectHistory'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '学生姓名',
    field: 'studentName',
    component: 'Input'
  },
 {
    label: '学校/名称',
    field: 'schoolName',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '学生姓名',
    field: 'studentName',
    component: 'Input',
  },
  {
    label: '学校/名称',
    field: 'schoolName',
    component: 'Input',
  },
  {
    label: '学院/名称',
    field: 'collegeName',
    component: 'Input',
  },
  {
    label: '班级',
    field: 'className',
    component: 'Input',
  },
  {
    label: '就业企业',
    field: 'workFirm',
    component: 'Input',
  },
  {
    label: '岗位名称',
    field: 'gangweiName',
    component: 'Input',
  },
  {
    label: '职业名称',
    field: 'jobName',
    component: 'Input',
  },
  {
    label: '光荣事迹',
    field: 'perfectHistory',
    component: 'Input',
  },
];
